<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script src="<c:url value="/resources/core/js/jquery-3.1.1.min.js" />"></script>
    <title>NYTalk网盘登录</title>
    <style type="text/css">
        td {
            height: 24px;
            width: 160px;
            border: 1px solid red;
        }

        .td_01 {
            text-align: right;

        }

        .td_02 {
            text-align: center;
            color: red;
        }

        .login_div {
            margin-top: 45px;
            margin: 0px auto;
            width: 750px;
            height: 320px;
            padding-top: 50px;
            background-color: 87 CEEB;
        }

        .login_table {
            margin-top: 45px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#resetBtn").click(function () {
                $("#userName").val("");
                $("#password").val("");
            });
        });

    </script>
</head>
<body>
<form id="form1" name="form1" action="${pageContext.request.contextPath}/user/login" method="post">
    <div class="login_div">
        <table style="margin:0px auto; margin-top:45px;">
            <tr>
                <td colspan="2" align="center">NYTalk网盘登录</td>
            </tr>
            <tr>
                <td colspan="2" id="login_prompt" class="td_02">${message}</td>
            </tr>
            <tr>
                <td class="td_01">用户名:</td>
                <td></span> <span style=""> <input id="userName" name="userName" type="text" class="txt"/> </span></td>

            </tr>
            <tr>
                <td class="td_01">密&nbsp;&nbsp;&nbsp;码:</td>
                <td><input id="password" name="password" type="password" class="txt"
                           onkeydown="if(event.keyCode==13)form1.submit()"/></td>

            </tr>
            <tr>
                <td style="margin:0px auto;"><input type="submit" value="登陆" name="loginBtn"
                                                    style="width:75px;height:40px;margin-left:70px;"
                /></td>
                <td><input type="reset" value="重置" name="resetBtn" style="width:75px;height:40px;padding-right:24px;"
                /></td>
            </tr>
        </table>
    </div>
</form>
</body>
</html>